package com.ruoyi.common.enums;

import com.baomidou.mybatisplus.annotation.EnumValue;
import lombok.Getter;

/**
 * @author liutao
 * @version 1.0
 * @description: TODO
 * @date 2024/3/10 18:29
 */
public enum LoginType implements BaseEnum {
    PLATFORM(0, "平台"),
    APP(1, "APP"),
    ;
    @EnumValue
    private final int code;
    private final String name;

    LoginType(int code, String name){
        this.code = code;
        this.name = name;
    }

    @Override
    public int getCode() {
        return this.code;
    }

    @Override
    public String getName() {
        return this.name;
    }

    @Override
    public String getEnumName() {
        return this.name;
    }
}
